<%@ page language="java" contentType="text/html; charset=utf-8"
	isErrorPage="true" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Error</title>
<script type="text/javascript">alert("<%out.println(exception.toString());%>");</script>
</head>
<body>
<h3>Sorry, error...</h3>
<br />

<!-- 前台页面异常 -->
<div onClick="getElementById('errorMsg').style.display='block';">click
me to &gt;show&lt; error msg</div>
<br /> <br /> <br /> <br /> <br /> <br />

<!-- 可进行异常分级显示处理 -->
<div id="errorMsg" style="display: none;">
<table>
	<tr>
		<th>Message</th>
	</tr>
	<tr>
		<td>
		<%
			out.println(exception.toString());
		%>
		</td>
	</tr>
</table>
</div>
</body>
</html>